# -*- coding: utf-8 -*-
from src.com.ydzy.app.stragety_init import env
from src.com.ydzy.util.base_util import BaserUtil
from src.com.ydzy.util.http_util import HttpClient

http_client = HttpClient()
base_client=BaserUtil()

active=env.active
env_dict={
    'test':'https://audit.gat.gz/',
    'local':'http://localhost:20028/',
}
interface='auditcenter/log_strategies/'
base_strategy_id=171

init_param=\
{
  "logType": "deault_base",
  "sysId": "",
  "type": "01",
  "name": "基础日志策略",
  "desc": "基础日志策略",
  "auditStatus": "1",
  "status": "1",
  "fieldInfos": [
    {
      "sortNum": 1,
      "relType": "01",
      "showOpt": "01,02,03",
      "pageOptJson": {
        "field": "operateType",
        "type": "selectTree",
        "label": "操作类型",
        "optionKey": "code",
        "optionName": "content",
        "dictType": "operate_type"
      },
      "fieldName": "operateType",
      "fieldZh": "操作类型",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "业务操作类型",
      "isInternal": "1",
      "isMust": "1",
      "validateType": "03",
      "dataRule": "1401",
      "ruleReverse": "0",
      "expression": "code@audit_dict@type='operate_type'",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "日志操作类型完整性检查项",
      "ruleAdvise": "日志操作类型规则性检查项",
      "mustScore": 1,
      "ruleScore": 1,
      "queryOpt": "",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-29 21:13:34"
    },
    {
      "sortNum": 2,
      "relType": "01",
      "showOpt": "01,02,03",
      "pageOptJson": {
        "field": "subject",
        "type": "input",
        "label": "主体",
        "searchType": "fuzzy"
      },
      "fieldName": "subject",
      "fieldZh": "主体",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "主体",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "02",
      "dataRule": "17",
      "ruleReverse": "0",
      "expression": "^[\\w.-]+$",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "客体完整性检查项",
      "ruleAdvise": "主体应该是一个简单编码字符串",
      "mustScore": 50,
      "ruleScore": 1,
      "queryOpt": "01",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 3,
      "relType": "01",
      "showOpt": "01,02,03",
      "pageOptJson": {
        "field": "object",
        "type": "input",
        "label": "客体",
        "searchType": "fuzzy"
      },
      "fieldName": "object",
      "fieldZh": "客体",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "客体",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "^(192\\.168|10\\.\\d{1,3}|172\\.(1[6-9]|2[0-9]|3[01]))(\\.\\d{1,3}){2}$",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "主体完整性检查项",
      "ruleAdvise": "主体规则性检查项",
      "mustScore": 0,
      "ruleScore": 0,
      "queryOpt": "01",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 4,
      "relType": "01",
      "showOpt": "01,02,03",
      "pageOptJson": {
        "field": "businessIp",
        "type": "input",
        "label": "业务发生IP",
        "searchType": "fuzzy"
      },
      "fieldName": "businessIp",
      "fieldZh": "业务发生IP",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "业务发生IP",
      "isInternal": "1",
      "isMust": "1",
      "validateType": "02",
      "dataRule": "04",
      "ruleReverse": "0",
      "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
      "usageOpt": "01,02",
      "blockType": "01",
      "mustAdvise": "报送日志应提供业务发生IP",
      "ruleAdvise": "业务发生IP地址应该是一个合法IP地址",
      "mustScore": 1,
      "ruleScore": 1,
      "queryOpt": "01",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 5,
      "relType": "01",
      "showOpt": "01,02,03",
      "pageOptJson": {
        "field": "terminal",
        "type": "input",
        "label": "终端Ip",
        "searchType": "fuzzy"
      },
      "fieldName": "terminal",
      "fieldZh": "终端Ip",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "终端Ip",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "02",
      "dataRule": "04",
      "ruleReverse": "0",
      "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "终端Ip完整性检查项",
      "ruleAdvise": "终端Ip地址应该是一个合法IP地址",
      "mustScore": 50,
      "ruleScore": 1,
      "queryOpt": "01",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 6,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "dataLevel",
        "type": "select",
        "label": "敏感数据等级",
        "optionKey": "code",
        "optionName": "content",
        "dictType": "data_level"
      },
      "fieldName": "dataLevel",
      "fieldZh": "敏感数据等级",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "敏感数据等级",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "02",
      "dataRule": "1402",
      "ruleReverse": "1",
      "expression": "[\"01\",\"02\",\"03\"]",
      "usageOpt": "01,02",
      "blockType": "01",
      "mustAdvise": "敏感数据等级完整性检查项",
      "ruleAdvise": "发现敏感数据，及时排查",
      "mustScore": 50,
      "ruleScore": 3,
      "queryOpt": "01,02",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 7,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "checkPoint",
        "type": "input",
        "label": "检控点",
        "searchType": "fuzzy"
      },
      "fieldName": "checkPoint",
      "fieldZh": "检控点",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "检控点",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "02",
      "dataRule": "17",
      "ruleReverse": "0",
      "expression": "^[\\w.-]+$",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "检控点id完整性检查项",
      "ruleAdvise": "验证检控点是一个简单编码字符串",
      "mustScore": 50,
      "ruleScore": 1,
      "queryOpt": "01",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 8,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "ccUuid",
        "type": "input",
        "label": "全局唯一标识cc-uuid",
        "searchType": "fuzzy"
      },
      "fieldName": "ccUuid",
      "fieldZh": "全局唯一标识cc-uuid",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "全局唯一标识cc-uuid",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "^[\\w.-]+$",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "全局唯一标识cc-uuid完整性检查项",
      "ruleAdvise": "全局唯一标识cc-uuid规则性检查项",
      "mustScore": 50,
      "ruleScore": 1,
      "queryOpt": "01,02",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 9,
      "relType": "01",
      "showOpt": "01,02,03",
      "pageOptJson": {
        "field": "policeNo",
        "type": "input",
        "label": "警号",
        "searchType": "fuzzy"
      },
      "fieldName": "policeNo",
      "fieldZh": "警号",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "警号",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "警号完整性检查项",
      "ruleAdvise": "警号规则性检查项",
      "mustScore": 50,
      "ruleScore": 50,
      "queryOpt": "01,02",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 10,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "protocolType",
        "type": "select",
        "label": "网络协议类型",
        "optionKey": "code",
        "optionName": "content",
        "dictType": "protocol_type"
      },
      "fieldName": "protocolType",
      "fieldZh": "网络协议类型",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "网络协议类型",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "网络协议类型完整性检查项",
      "ruleAdvise": "网络协议类型规则性检查项",
      "mustScore": 50,
      "ruleScore": 50,
      "queryOpt": "",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-29 21:13:34"
    },
    {
      "sortNum": 11,
      "relType": "01",
      "showOpt": "01,02,03",
      "pageOptJson": {
        "field": "srcIp",
        "type": "input",
        "label": "网络访问源IP",
        "searchType": "fuzzy"
      },
      "fieldName": "srcIp",
      "fieldZh": "网络访问源IP",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "网络访问源IP",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "02",
      "dataRule": "04",
      "ruleReverse": "0",
      "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
      "usageOpt": "01",
      "blockType": "01",
      "mustAdvise": "网络访问源IP完整性检查项",
      "ruleAdvise": "网络访问源IP规则性检查项",
      "mustScore": 50,
      "ruleScore": 1,
      "queryOpt": "01",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 12,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "destIp",
        "type": "input",
        "label": "网络访问目标IP",
        "searchType": "fuzzy"
      },
      "fieldName": "destIp",
      "fieldZh": "网络访问目标IP",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "网络访问目标IP",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "02",
      "dataRule": "04",
      "ruleReverse": "0",
      "expression": "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)$|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))",
      "usageOpt": "01",
      "blockType": "01",
      "ruleAdvise": "网络访问目标IP规则性检查项",
      "ruleScore": 1,
      "queryOpt": "01",
      "status": "1",
      "createTime": "2024-05-21 13:54:44",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 13,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "srcPort",
        "type": "input",
        "label": "网络访问源端口",
        "searchType": "term"
      },
      "fieldName": "srcPort",
      "fieldZh": "网络访问源端口",
      "fieldType": "int",
      "fieldFormat": "",
      "fieldDesc": "网络访问源端口",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "",
      "usageOpt": "02",
      "blockType": "01",
      "mustAdvise": "网络访问源端口完整性检查项",
      "ruleAdvise": "网络访问源端口规则性检查项",
      "mustScore": 50,
      "ruleScore": 50,
      "queryOpt": "01,02",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 14,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "destPort",
        "type": "input",
        "label": "网络访问目标端口",
        "searchType": "term"
      },
      "fieldName": "destPort",
      "fieldZh": "网络访问目标端口",
      "fieldType": "int",
      "fieldFormat": "",
      "fieldDesc": "网络访问目标端口",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "",
      "usageOpt": "02",
      "blockType": "01",
      "mustAdvise": "网络访问目标端口完整性检查项",
      "ruleAdvise": "网络访问目标端口规则性检查项",
      "mustScore": 50,
      "ruleScore": 50,
      "queryOpt": "01,02",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 15,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "flow",
        "type": "input",
        "label": "流量（字节）",
        "searchType": "range"
      },
      "fieldName": "flow",
      "fieldZh": "流量（字节）",
      "fieldType": "int",
      "fieldFormat": "",
      "fieldDesc": "流量（字节）",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "",
      "usageOpt": "02",
      "blockType": "01",
      "mustAdvise": "流量（字节）完整性检查项",
      "ruleAdvise": "流量（字节）规则性检查项",
      "mustScore": 50,
      "ruleScore": 50,
      "queryOpt": "01,02",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 16,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "duration",
        "type": "input",
        "label": "时长（毫秒）",
        "searchType": "range"
      },
      "fieldName": "duration",
      "fieldZh": "时长（毫秒）",
      "fieldType": "int",
      "fieldFormat": "",
      "fieldDesc": "时长（毫秒）",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "expression": "",
      "usageOpt": "02",
      "blockType": "01",
      "mustAdvise": "时长（毫秒）完整性检查项",
      "ruleAdvise": "时长（毫秒）规则性检查项",
      "mustScore": 50,
      "ruleScore": 50,
      "queryOpt": "01,02",
      "status": "1",
      "createTime": "2024-05-07 20:23:43",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 17,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "logTime",
        "type": "date",
        "label": "日志时间"
      },
      "fieldName": "logTime",
      "fieldZh": "日志时间",
      "fieldType": "datetime",
      "fieldFormat": "yyyy-MM-dd HH:mm",
      "fieldDesc": "日志时间",
      "isInternal": "1",
      "isMust": "1",
      "validateType": "02",
      "dataRule": "03",
      "ruleReverse": "0",
      "expression": "^\\d{4}([. /-])\\d{1,2}\\1\\d{1,2}[ T]\\d{1,2}:\\d{1,2}(:\\d{1,2}(\\.\\d{3,6})?)?$",
      "usageOpt": "01",
      "blockType": "01",
      "status": "1",
      "createTime": "2024-05-21 11:53:01",
      "updateTime": "2024-05-22 15:57:14"
    },
    {
      "sortNum": 18,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "userToken",
        "type": "input",
        "label": "用户令牌",
        "searchType": "term"
      },
      "fieldName": "userToken",
      "fieldZh": "用户令牌",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "用户令牌",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "usageOpt": "01",
      "blockType": "01",
      "status": "1",
      "createTime": "2024-05-21 11:53:01",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 19,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "appToken",
        "type": "input",
        "label": "应用令牌",
        "searchType": "term"
      },
      "fieldName": "appToken",
      "fieldZh": "应用令牌",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "应用令牌",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "usageOpt": "01",
      "blockType": "01",
      "status": "1",
      "createTime": "2024-05-21 11:53:01",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 20,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "taskId",
        "type": "input",
        "label": "调用任务ID",
        "searchType": "term"
      },
      "fieldName": "taskId",
      "fieldZh": "调用任务ID",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "调用任务ID",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "usageOpt": "01",
      "blockType": "01",
      "status": "1",
      "createTime": "2024-05-22 14:22:53",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 21,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "userAgent",
        "type": "input",
        "label": "用户代理",
        "searchType": "fuzzy"
      },
      "fieldName": "userAgent",
      "fieldZh": "用户代理",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "用户代理",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "usageOpt": "01",
      "blockType": "01",
      "status": "1",
      "createTime": "2024-05-22 14:22:53",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 22,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "auditStatus",
        "type": "select",
        "label": "审计状态",
        "optionKey": "code",
        "optionName": "content",
        "dictType": "audit_status"
      },
      "fieldName": "auditStatus",
      "fieldZh": "审计状态",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "审计状态",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "usageOpt": "01",
      "blockType": "01",
      "status": "1",
      "createTime": "2024-05-22 14:22:53",
      "updateTime": "2024-05-30 10:43:43"
    },
    {
      "sortNum": 23,
      "relType": "01",
      "showOpt": "02,03",
      "pageOptJson": {
        "field": "checkSum",
        "type": "input",
        "label": "签名"
      },
      "fieldName": "checkSum",
      "fieldZh": "签名",
      "fieldType": "string",
      "fieldFormat": "",
      "fieldDesc": "签名",
      "isInternal": "1",
      "isMust": "0",
      "validateType": "",
      "dataRule": "",
      "ruleReverse": "0",
      "usageOpt": "01",
      "blockType": "01",
      "status": "1",
      "createTime": "2024-05-22 14:45:07",
      "updateTime": "2024-05-29 21:13:34"
    }
  ]
}



def get_req_url(active):
    req_url=env_dict[active]+interface
    return req_url


def main():
    url = get_req_url(active)+str(base_strategy_id)
    res2 = http_client.put(url=url, data=init_param, fast_falg=True)
    print(res2)


if __name__=='__main__':
    main()